/**
 * 加密
 */
import jsencrypt from 'jsencrypt';

/**
 *  加密
 * @param {string} word 加码的字符串
 * @returns {string} 加密后字符串
 */

export const encrypt = (word) => {
  let publicKey = 'xxx';
  let encrypt = new jsencrypt();

  encrypt.setPublicKey(publicKey);

  let encryptPwd = encrypt.encrypt(word);

  return encryptPwd;
};
